package com.atguigu.eduorder.client;

import com.atguigu.commonutils.vo.UcenterMemberOrder;
import com.atguigu.eduorder.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    @PostMapping("/ucenter/member/getUcenterInfoOrder")
    public UcenterMemberOrder getUcenterInfoOrder(@RequestParam("memberId") String memberId);

}
